rem ============================================================== rem It is recommended to test the script on a local machine for its purpose and effects. rem ManageEngine Desktop Central will not be responsible for any rem damage/loss to the data/setup based on the behavior of the script. rem Description: Script to clear a specific user's temp files rem Parameters: rem Remarks: The script has to be deployed as User Configuration rem Configuration Type - User rem ============================================================== @echo off echo Deleting temporary files... echo. REM Change to the temp directory cd /d %temp% REM Delete all files and subdirectories del /f /q /s * rmdir /s /q %temp%\* REM Return to the previous directory cd /d %~dp0 echo. echo Temporary files deleted successfully.